<template>
    <div class="container">
        <GoodsTypeAddComponent @refresh="refreshData"></GoodsTypeAddComponent><br><br>
        <GoodsTypeQueryComponent :key="data.timer"></GoodsTypeQueryComponent>
    </div>
</template>

<script setup lang="ts">
import GoodsTypeAddComponent from './GoodsTypeAddComponent.vue';
import GoodsTypeQueryComponent from './GoodsTypeQueryComponent.vue';
import { ref } from 'vue'

const data = ref({
  timer: 1
})

function refreshData(){
	data.value.timer = new Date().getTime()
}
</script>

<style scoped>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
</style>